module.exports = canvas => {
  const ctx = canvas.getContext('2d')
  var radius = canvas.width / 2 - 30
  return () => {
    ctx.translate(canvas.width / 2, canvas.height / 2)
    drawDial(ctx, radius)
    drawHand(ctx, radius)
  }
}
function drawDial(ctx, radius){
  ctx.lineWidth = '2'
  ctx.beginPath()
  ctx.arc(0, 0, radius, 0, 2 * Math.PI, true)
  ctx.stroke()
  ctx.lineWidth = '1'
  ctx.beginPath()
  ctx.arc(0, 0, 8, 0, 2 * Math.PI, true)
  ctx.stroke()
}